<h2 class="contentTitle">Edit Squad</h2>
<div class="contentBody">
<fieldset>
<table class="contentTable">
<tr>
<td class="label">Club:</td>
<td><select name="FK_CLUB_ID" class=dataentry>
	<option value="">Please select ...</option>
	<TMPL_VAR NAME=CLUB_CLUB_OPTIONS>
	</select>
</td>
</tr>
<tr>
<td colspan=2>
<div class="submit">
<input type=button class="button" onClick="addObject('CLUB','');" value="Add Club">
<input type=button class="button" onClick="updateObject('SQUAD','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>')" value="Update &raquo;">
</div>
</td>
</tr>
<tr>
<td class="label">Season:</td>
<td><select name="FK_SEASON_ID" class=dataentry>
	<option value="">Please select ...</option>
	<TMPL_VAR NAME=SEASON_SEASON_OPTIONS>
	</select>
</td>
</tr>
<tr>
<td colspan=2>
<div class="submit">
<input type=button class="button" onClick="addObject('SEASON','');" value="Add Season">
<input type=button class="button" onClick="updateObject('SQUAD','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>');" value="Update &raquo;">
</div>
</td>
</tr>
<tr>
<td class="label">Squad Name:</td>
<td><input type=text name=SQUAD_NAME value="<TMPL_VAR NAME=SQUAD_NAME>" size=80 class="dataentry"></td>
</tr>
<tr>
<td class="label">Squad Order:</td>
<td><input type=text name=SQUAD_ORDER value="<TMPL_VAR NAME=SQUAD_ORDER>" size=5 class="dataentry"><br>
<small>integer value for ordering of squad lists (1->n)</small></td>
</tr>
<tr>
<td colspan=2>
<div class="submit">
<input type=button class="button" onClick="updateObject('SQUAD','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>');" value="Update &raquo;">
</div>
</td>
</tr>
<tr>
<td class="label">Home Stadium:</td>
<td><select name="FK_STADIUM_ID" class=dataentry>
	<option value="">Please select ...</option>
	<TMPL_VAR NAME=STADIUM_STADIUM_OPTIONS>
	</select>
</td>
</tr>
<tr>
<td colspan=2>
<div class="submit">
<input type=button class="button" onClick="addObject('STADIUM','');" value="Add Stadium">
<input type=button class="button" onClick="updateObject('SQUAD','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>');" value="Update &raquo;">
</div>
</td>
</tr>
<tr>
<td colspan=2>
	<table>
	<tr>
	<th class="viewauthorhead">Squad No.</th><th class="viewauthorhead">Player</th><th class="viewauthorhead">&nbsp;</th>
	</tr>
		<TMPL_VAR NAME=SQUAD_SQUADPLAYERS_EDIT>
	<tr>
	<td><input type=text name="SQUAD_NUMBER" value="" size=10 class=dataentry></td>
	<td><select name="FK_PLAYER_ID" class=dataentry>
		<option value="">Please select ...</option>
		<TMPL_VAR NAME=PLAYER_PLAYER_OPTIONS>
		</select>
	</td>
	<td>&nbsp;</td>
	</tr>
	</table>
</td>
</tr>

<tr>
<td colspan=2>
<div class="submit">
<input type=button class="button" onClick="addObject('PLAYER','<TMPL_VAR NAME=o>');" value="Add Player">
<input type=button class="button" onClick="updateObject('SQUAD','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>','Squad.Edit');" value="Update &raquo;">
</div>
</td>
</tr>

<tr>
<td colspan=2>
Bulk Squad Entry:
<textarea name="SQUAD_STRING" rows=3 cols=80></textarea>
</td>
</tr>

<tr>
<td colspan=2>
<div class="submit">
<input type=button class="button" onClick="updateObject('SQUAD','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>','Squad.Edit');" value="Update &raquo;">
</div>
</td>
</tr>

<tr>
<th colspan=2>
	<h3 class="contentSubTitle">Coaches</h3>
</td>
</tr>
<tr>
<td colspan=2>
	<table>
		<TMPL_VAR NAME=SQUAD_SQUADSTAFF_EDIT>
	</table>
</td>
</tr>
</table>
<div class="submit">
<input type=button class="button" onClick="updateObject('SQUAD','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>')" value="Update &raquo;">
</div>
</fieldset>
</div>

<TMPL_VAR NAME=OBJECTS> 